package com.baoyouqun.domain.VO;

import com.baoyouqun.domain.Enum.SearchTypeEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class UserSearchRecordVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "搜索记录ID")
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "用户手机号")
    private String userPhone;

    @ApiModelProperty(value = "用户所在地区（如江西省 南昌市 青山湖区）")
    private String userRegion;

    @ApiModelProperty(value = "会员等级名称（临时会员/VIP会员）")
    private String memberLevelName;

    @ApiModelProperty(value = "搜索关键词")
    private String searchKeyword;

    @ApiModelProperty(value = "搜索类型（1=综合，2=找需求，3=找资源，4=找人）")
    private SearchTypeEnum searchType;

    @ApiModelProperty(value = "搜索类型名称（如综合、找需求）")
    private String searchTypeName;

    @ApiModelProperty(value = "搜索类型")
    private String type;

    @ApiModelProperty(value = "搜索时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}